package com.tansun.easycare.rule.ruletest.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 规则测试Entity
 *
 * @author lph
 * @version 2017-09-22
 */
public class RuleResp extends RuleBaseEntity<RuleResp> {

    private static final long serialVersionUID = 1L;
    private String respCode;        // 应答码
    private String respDesc;        // 应答信息
    private String serialNo;        // 流水号
    private String resultData;        // 结果数据集
    private String projectCode;        // 规则项目编号
    private String entryPoint;        // 入口点参数
    private String exception;        // 异常信息
    private String exceptionType;        // 异常类型
    private String isSuccess;        // 是否调用成功
    private String rowNo;        // row_no
    private String invokeTime;        // 调用时间
    private String ruleFlowCode;
    private String ruleFlowVersion;

    public String getTestId() {
        return testId;
    }

    public void setTestId(String testId) {
        this.testId = testId;
    }

    private String testId;

    public String getRuleFlowCode() {
        return ruleFlowCode;
    }

    public void setRuleFlowCode(String ruleFlowCode) {
        this.ruleFlowCode = ruleFlowCode;
    }

    public String getRuleFlowVersion() {
        return ruleFlowVersion;
    }

    public void setRuleFlowVersion(String ruleFlowVersion) {
        this.ruleFlowVersion = ruleFlowVersion;
    }

    public RuleResp() {
        super();
    }

    public RuleResp(String id) {
        super(id);
    }

    @Length(min = 1, max = 16, message = "应答码长度必须介于 1 和 16 之间")
    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    @Length(min = 0, max = 200, message = "应答信息长度必须介于 0 和 200 之间")
    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }

    @Length(min = 0, max = 32, message = "流水号长度必须介于 0 和 32 之间")
    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getResultData() {
        return resultData;
    }

    public void setResultData(String resultData) {
        this.resultData = resultData;
    }

    @Length(min = 1, max = 32, message = "规则项目编号长度必须介于 1 和 32 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    @Length(min = 1, max = 32, message = "入口点参数长度必须介于 1 和 32 之间")
    public String getEntryPoint() {
        return entryPoint;
    }

    public void setEntryPoint(String entryPoint) {
        this.entryPoint = entryPoint;
    }

    @Length(min = 1, max = 2000, message = "异常信息长度必须介于 1 和 2000 之间")
    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    @Length(min = 1, max = 10, message = "异常类型长度必须介于 1 和 10 之间")
    public String getExceptionType() {
        return exceptionType;
    }

    public void setExceptionType(String exceptionType) {
        this.exceptionType = exceptionType;
    }

    @Length(min = 1, max = 10, message = "是否调用成功长度必须介于 1 和 10 之间")
    public String getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(String isSuccess) {
        this.isSuccess = isSuccess;
    }

    @Length(min = 0, max = 32, message = "row_no长度必须介于 0 和 32 之间")
    public String getRowNo() {
        return rowNo;
    }

    public void setRowNo(String rowNo) {
        this.rowNo = rowNo;
    }

    @Length(min = 1, max = 64, message = "调用时间长度必须介于 1 和 64 之间")
    public String getInvokeTime() {
        return invokeTime;
    }

    public void setInvokeTime(String invokeTime) {
        this.invokeTime = invokeTime;
    }

}